import url from '@/url.config'
export default ({ service, request, tools }) => ({
    listFindCheckListByPage(data) {
        // 校验列表分页数据
        return request({
            url: url.ip1 + "/listDetails/findCheckListByPage",
            method: "post",
            data: data
        })
    },
    listFindCalibrationListByPage(data) {
        // 校准列表分页数据
        return request({
            url: url.ip1 + "/listDetails/findCalibrationListByPage",
            method: "post",
            data: data
        })
    },
    listFindMaintenanceListPoByPage(data) {
        // 维修列表分页数据
        return request({
            url: url.ip1 + "/listDetails/findMaintenanceListPoByPage",
            method: "post",
            data: data
        })
    },
    listFindReplaceListByPage(data) {
        // 更换列表分页数据
        return request({
            url: url.ip1 + "/listDetails/findReplaceListByPage",
            method: "post",
            data: data
        })
    },
    waterDriftCalibration(id) {
        // 水质校准详情
        return request({
            url: url.ip1 + `/listDetails/waterDriftCalibration/${id}`,
            method: "get",

        })
    },
    driftCalibration(id) {
        // 烟气校准详情
        return request({
            url: url.ip1 + `/listDetails/driftCalibration/${id}`,
            method: "get",

        })
    },
    waterRepair(id) {
        // 水质维修详情
        return request({
            url: url.ip1 + `/listDetails/waterRepair/${id}`,
            method: "get",

        })
    },
    smokeRepair(id) {
        // 烟气维修详情
        return request({
            url: url.ip1 + `/listDetails/smokeRepair/${id}`,
            method: "get",

        })
    },
    smokeReplace(id) {
        // 烟气更换详情
        return request({
            url: url.ip1 + `/listDetails/smokeReplace/${id}`,
            method: "get",

        })
    },
    waterReplace(id) {
        // 水质更换详情
        return request({
            url: url.ip1 + `/listDetails/waterReplace/${id}`,
            method: "get",

        })
    },
    checkListBy(id) {
        // 校验详情
        return request({
            url: url.ip1 + `/listDetails/checkListBy/${id}`,
            method: "get",

        })
    },
})